package com.haixiaoke.saas.repository.mapper;


import com.haixiaoke.saas.repository.pojo.HouseFacilities;

import java.util.List;

/**
 * 房屋设施Mapper接口
 *
 * @author qixi
 * @date 2023-04-06
 */

public interface HouseFacilitiesMapper {
    /**
     * 查询房屋设施
     *
     * @param facilitiesId 房屋设施主键
     * @return 房屋设施
     */
    HouseFacilities selectHouseFacilitiesByFacilitiesId(Long facilitiesId);

    /**
     * 查询房屋设施列表
     *
     * @param houseFacilities 房屋设施
     * @return 房屋设施集合
     */
    List<HouseFacilities> selectHouseFacilitiesList(HouseFacilities houseFacilities);

    /**
     * 新增房屋设施
     *
     * @param houseFacilities 房屋设施
     * @return 结果
     */
    int insertHouseFacilities(HouseFacilities houseFacilities);

    /**
     * 修改房屋设施
     *
     * @param houseFacilities 房屋设施
     * @return 结果
     */
    int updateHouseFacilities(HouseFacilities houseFacilities);

    /**
     * 删除房屋设施
     *
     * @param facilitiesId 房屋设施主键
     * @return 结果
     */
    int deleteHouseFacilitiesByFacilitiesId(Long facilitiesId);

    /**
     * 批量删除房屋设施
     *
     * @param facilitiesIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteHouseFacilitiesByFacilitiesIds(Long[] facilitiesIds);

    int checkFacilitiesNameUnique(String facilitiesName);

    List<HouseFacilities> selectHouseFacilitiesByFacilitiesIdIn(List<Long> facilitiesId);

}
